package com.newjiabo.applet.controller;

import com.newjiabo.common.core.controller.BaseController;
import com.newjiabo.common.core.domain.AjaxResult;
import com.newjiabo.ski.domain.dto.AssessDto;
import com.newjiabo.ski.service.ISkiAssessService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * {类内容}
 *
 * @author CaoMengHui.
 * @version 1.0
 * @since 2023/10/19 13:39
 */
@RestController
@RequestMapping(value = "/applet/common")
@Api(tags = "小程序;订单中心")
public class CommentController extends BaseController {

    @Resource
    private ISkiAssessService assessService;

    @ApiOperation(value = "进行评价")
    @PostMapping(value = "/comment")
    private AjaxResult comment(@RequestBody AssessDto assessDto){
        return toAjax(assessService.comment(assessDto));
    }
}
